home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3845 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: news.compuserve.com!newsmaster
  2. From: 100754.2730@compuserve.com (Martin Aupperle)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Name-mangling standard
  5. Date: Fri, 26 Jan 1996 10:01:10 GMT
  6. Organization: CompuServe Incorporated
  7. Message-ID: <4ea942$kq6@dub-news-svc-1.compuserve.com>
  8. References: <20c.32169.607@newage.com.ar>
  9. NNTP-Posting-Host: ad02-055.compuserve.com
  10. X-Newsreader: Forte Free Agent v0.56
  11.  
  12. juan.jose.comellas@newage.com.ar (Juan Jose Comellas) wrote:
  13.  
  14. >Is anyone aware of any ANSI/ISO standard for name-mangling in C++? I
  15. >currently work with several different C++ compilers and I sometimes
  16. >want to compile a part of the project with one compiler and another
  17. >part with another one, but different schemes for name-mangling make
  18. >this impossible. 
  19.  
  20. It's not only name mangling that is not standardized. Object layout is
  21. another thing. Where do you put the additional stuff necessary to have
  22. virtual functions, inheritance, RTTI, exception handling? You need
  23. some additional pointers in your objects and some additional data
  24. structures these pointers point to - and all this IS NOT STANDARDIZED.
  25.  
  26.  
  27. So even if you find two compilers that use the same name mangling
  28. scheme, and assume your linker links the modules - chances are that
  29. the program crashes before even entering main. 
  30.  
  31. Martin 
  32. -----------------------------------
  33. Signatures are a waste of bandwidth
  34. -----------------------------------
  35.  
  36.